import Vue from 'vue';
 import Vuex from 'vuex';
//  import * as actions from './actions';
//  import * as mutations from './mutations';
//  import * as getters from './getters';
//  import state from './rootState';
 Vue.use(Vuex)
 const store = new Vuex.Store({
  state: {
    isLogin: true
  },
  mutations: {
    setIsLogin (state) {
      state.isLogin = !state.isLogin;
    }
  },
  actions: {
    setIsLogin (context) {
      context.commit('setIsLogin')
    }
  }
})
 export default store;
